package com.woniu.common.exception;

import com.woniu.common.entity.ResultCode;
import lombok.Data;

/**
 * 自定义异常
 */
@Data
public class MallException extends RuntimeException{

    private ResultCode resultCode;

    public MallException(String message){
        super(message);
    }

    public MallException(String message, ResultCode resultCode){
        super(message);
        this.resultCode=resultCode;
    }
}
